<template>
  <div>
    <van-cell-group inset title='积分获取记录'>
      <van-cell v-for='(item,index) in integralList' :key='index' :title=item.title :value="'获取积分 ： ' + item.number"
                :lable="'获取时间' + item.createTime" />
    </van-cell-group>
  </div>
</template>

<script>
import { intergralList } from '@/api/commission.js'

export default {
  data() {
    return {
      integralList: []
    }
  },
  methods: {
    getIntegral() {
      intergralList().then(res => {
        this.integralList = res.data
      })
    }
  },
  created() {
    this.getIntegral()
  }
}
</script>

<style lang='scss' scoped>

</style>
